<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "project_investigation_stakeholder".
 *
 * @property string $id
 * @property string $project_id
 * @property integer $stakeholder_type
 * @property string $stakeholder_title
 * @property string $registered_capital
 * @property string $registered_address
 * @property string $legal_representative
 * @property string $scope_of_business
 * @property string $proportion
 * @property string $borrower
 * @property string $buy_back
 * @property integer $faith
 * @property integer $limit_high
 * @property string $block_list
 * @property string $block_value
 * @property string $guarantee_scope
 * @property string $guarantee
 * @property string $mortgage_order
 * @property string $seal_order
 * @property string $other_mortgage
 * @property string $evaluate_price
 * @property string $auction_price
 * @property string $market_price
 * @property string $rent
 * @property string $live
 * @property string $interview
 * @property string $payment_reservation
 * @property string $reservation_evidence
 * @property string $payment_radical
 * @property string $radical_evidence
 * @property string $created_at
 * @property string $updated_at
 * @property integer $lock_user
 * @property string $lock_timestamp
 */
class ProjectInvestigationStakeholder extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'project_investigation_stakeholder';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['project_id', 'stakeholder_type'], 'required'],
            [['project_id', 'stakeholder_type', 'faith', 'limit_high', 'lock_user'], 'integer'],
            [['scope_of_business', 'proportion', 'borrower', 'buy_back', 'block_value', 'guarantee_scope', 'guarantee', 'mortgage_order', 'seal_order', 'other_mortgage', 'rent', 'live', 'interview', 'reservation_evidence', 'radical_evidence'], 'string'],
            [['created_at', 'updated_at'], 'safe'],
            [['stakeholder_title', 'registered_capital', 'registered_address', 'legal_representative', 'block_list', 'evaluate_price', 'auction_price', 'market_price', 'payment_reservation', 'payment_radical', 'lock_timestamp'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'project_id' => 'Project ID',
            'stakeholder_type' => 'Stakeholder Type',
            'stakeholder_title' => 'Stakeholder Title',
            'registered_capital' => 'Registered Capital',
            'registered_address' => 'Registered Address',
            'legal_representative' => 'Legal Representative',
            'scope_of_business' => 'Scope Of Business',
            'proportion' => 'Proportion',
            'borrower' => 'Borrower',
            'buy_back' => 'Buy Back',
            'faith' => 'Faith',
            'limit_high' => 'Limit High',
            'block_list' => 'Block List',
            'block_value' => 'Block Value',
            'guarantee_scope' => 'Guarantee Scope',
            'guarantee' => 'Guarantee',
            'mortgage_order' => 'Mortgage Order',
            'seal_order' => 'Seal Order',
            'other_mortgage' => 'Other Mortgage',
            'evaluate_price' => 'Evaluate Price',
            'auction_price' => 'Auction Price',
            'market_price' => 'Market Price',
            'rent' => 'Rent',
            'live' => 'Live',
            'interview' => 'Interview',
            'payment_reservation' => 'Payment Reservation',
            'reservation_evidence' => 'Reservation Evidence',
            'payment_radical' => 'Payment Radical',
            'radical_evidence' => 'Radical Evidence',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'lock_user' => 'Lock User',
            'lock_timestamp' => 'Lock Timestamp',
        ];
    }
}
